from peewee import Model, CharField, DateField, UUIDField, BooleanField, TimestampField
from config import db


class Attend(Model):
    uid = UUIDField()
    date = DateField()
    on_date = TimestampField(null=True)
    off_date = TimestampField(null=True)
    is_fine = BooleanField(default=False)

    class Meta:
        database = db
